package com.zixi.ai.plugin.entity;

import com.alibaba.fastjson2.JSONObject;
import com.zixi.ai.framework.entity.ExtBaseEntity;
import com.zixi.ai.framework.entity.convert.JSONObjectConverter;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.persistence.Convert;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;

/**
 * @author wfg
 */
@Getter
@Setter
@Entity
@Table(name = "zx_ai_plugins")
@Tag(name = "AiPluginEntity", description = "插件组")
public class AiPluginsEntity extends ExtBaseEntity {
    /**
     * 插件图标
     */
    private String icon;

    /**
     * 插件类型
     */
    private Integer pluginType;

    /**
     * 插件名称
     */
    private String pluginName;

    /**
     * 插件描述
     */
    private String pluginDesc;

    /**
     * 插件配置
     */
    @Convert(converter = JSONObjectConverter.class)
    private JSONObject content;

    /**
     * 数据状态
     */
    private Integer status;

    /**
     * 备注
     */
    private String remark;
}
